package com.dnw.modle;

import com.google.gson.Gson;



/**
 * @author ChayChan
 * @description: TODO
 * @date 2017/7/6  15:11
 */

public class Funnys {


    /**
     "id": 8011,
     "smallImage": "http://106.15.202.6:81/2017/02/23/small/2421560_63d16817b85027a2060ad7ed95d70952_1487862897.jpg",
     "bigImage": "http://106.15.202.6:81/2017/02/23/big/2421560_63d16817b85027a2060ad7ed95d70952_1487862897.jpg",
     "jid": 2421574,
     "good": 54,
     "bad": 4,
     "createTime": "2017-11-08 23:59",
     "source": "哈哈",
     "type": "baoxiaoduanzi",
     "status": 0,
     "content": "这太特么尴尬了，他警队的战友兄弟们以后拿什么脸面对市民小学生们……"
     */

    public String id;
    public String smallImage;
    public String bigImage;
    public String jid;
    public String good;
    public String bad;
    public String createTime;
    public String source;
    public String type;
    public String status;
    public String content;
    public String loginName;
    public String avatarImg;
    public String userId;
    public String shareCount;
    public String mediaType;


    public enum mediaTypeEnum {
        RECOMMEND("",0),
        GIF("GIF",1),
        IMAGE("IMAGE",2),
        TEXT("TEXT",2)
        ;

        private String desc;
        private Integer code;

        public String getDesc() {
            return desc;
        }

        public Integer getCode() {
            return code;
        }

        mediaTypeEnum(String desc, Integer code) {
            this.desc = desc;
            this.code = code;
        }
    }
    public Funnys getProgramFunny(){
        Funnys funnys = new Funnys();
        funnys.id = "-1";
        funnys.smallImage = "";
        funnys.bigImage = "";
        funnys.jid = "3";
        funnys.good = "2";
        funnys.bad = "1";
        funnys.createTime = "";
        funnys.source = "1";
        funnys.type = "1";
        funnys.status = "1";
        funnys.content = "1111";
        funnys.loginName = "1";
        funnys.avatarImg = "1";
        funnys.userId = "111";
        funnys.shareCount = "1";
        funnys.mediaType = "PROGRAM";
        return funnys;
    }


    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
